#include <QCoreApplication>
#include <iostream>
#include <cmath>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication w(argc, argv);
    //Begin6
        cout<<"cube a= ";
        int a;
        cin>>a;
        cout<<"cube b= ";
        int b;
        cin>>b;
        cout<<"cube c= ";
        int c;
        cin>>c;
        cout<<"V= "<<a*b*c<<", S= "<<2*(a*b+b*c+a*c)<<endl<<endl;
    return w.exec();
}
